<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>电影类别</title>  
    
    <link rel="stylesheet" th:href="@{/css/layui.css}" media="all">
    <script src="@{/js/jquery-3.3.1.min.js}"></script>
	<script th:src="@{/js/layui.js}"></script>
	<script type="text/javascript" th:src="@{/js/jquery.serializejson.js}"></script>
	<script th:src="@{/js/lay/modules/element.js}" charset="utf-8"></script>
    
    <script type="text/javascript">
	   	$(function(){
	   		$.ajax({
				type:"get",
				url:"http://localhost:8080/cinemaProject/Dtable/getDtableAll",
				dataType:"json",
				success:function(data){
					console.log(data);
					var table = "<table class='layui-table'>";
					$.each(data,function(index,item){
						
					})
					table+="</table>";
					$("#appendDiv").append(table);
				},
				error:function(data) {
					alert("数据异常！");
				}
			})
	    })
	</script>
</head>
<body>
</body>
</html>